package org.example.bookingsystem.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.bookingsystem.model.UserInfo;

@Mapper
public interface UserMapper {
    @Select("select * from user where uid = #{uid}")
    UserInfo queryByUid(Integer uid);
    @Select("select * from user where uname = #{userName}")
    UserInfo queryByUserName(String userName);
}
